package small.common.core.system.util;

/**
 * jvm工具类
 *
 * @Author zhoujin
 * @Date 2022/11/18 15:49
 */
public class JvmUtil {

    private static Boolean isMultiInstance = false;

    private static final String TRUE = "true";


    static {
        String multiDeploy = System.getProperty("isMultiInstance", "false");
        if (TRUE.equals(multiDeploy)) {
            isMultiInstance = true;
        }
    }

    /**
     * 判断是否是多实例
     * @return
     */
    public static Boolean isMultiInstance() {
        return isMultiInstance;
    }

}
